package jdkrel._reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class _ConstructorDemo {

    public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Class<_ReflectObject> reflectObjectClass = _ReflectObject.class;
        Constructor<_ReflectObject> constructor1 = reflectObjectClass.getDeclaredConstructor(String.class,Integer.class);
        _ReflectObject reflectObject = constructor1.newInstance("1",2);
        System.out.println(reflectObject);
    }
}
